import type { BasicConfigOption } from '@/views/tools/nginx/nginx-info.ts'

export const mainBasicOptions : BasicConfigOption[] = [
  { code: 'worker_processes', name: 'worker_processes', description: '工作进程数量，数字或者"auto"' },
  { code: 'daemon', name: 'daemon ', description: 'on / off, 是否后台进程' },
  { code: 'error_log', name: 'error_log ', description: '例： error_log logs/error.log error, 日志级别：debug, info, notice, warn, error, crit, alert' },
  { code: 'user', name: 'user ', description: ' user user [group]; 默认 nobody ' },
  { code: 'include', name: 'include ' },
]

// events {} 块的配置， 暂时没有这个功能的配置页面
export const eventsBasicOptions : BasicConfigOption[] = [
  { code: 'worker_connections', name: 'worker_connections' },
  { code: 'worker_aio_requests', name: 'worker_aio_requests' },
  { code: 'accept_mutex', name: 'accept_mutex' },
  { code: 'use', name: 'use' },
  { code: 'accept_mutex_delay', name: 'accept_mutex_delay' },
]
